/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bmp.object;

import bmp.common.Constant;
import java.io.Serializable;

/**
 *
 * @author Admin
 */
public class SinhVienOBJ implements Serializable {

    protected int ID;
    protected String name;
    protected String address;
    protected String phone;

    // <editor-fold defaultstate="collapsed" desc="get/set infrastructure methods. Click the + sign on the left to edit the code.">
    public void setID(int ID){
        this.ID=ID;
    }

    public void setName(String name){
        this.name=name;
    }

    public void setAddress(String address){
        this.address=address;
    }

    public void setPhone(String phone){
        this.phone=phone;
    }

    public int getID(){
        return this.ID;
    }

    public String getName(){
        return this.name;
    }

    public String getAddress(){
        return this.address;
    }

    public String getPhone(){
        return this.phone;
    }

  
    // </editor-fold>

    public void empty(){
        this.ID=Constant.FALSE_ID;
        this.address=Constant.DEFAULT__VALUE_STRING;
        this.name=Constant.DEFAULT__VALUE_STRING;
        this.phone=Constant.DEFAULT__VALUE_STRING;
    }

    public boolean validate(){
        if(this.name.equals("")||this.address.equals("")){
            return false;
        }
        return true;
    }

}
